<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    <!--循环结构-->
    let names=['李四','王我','王我','王我','王我','王我','王我',];
    for(var i=0;i<names.length ;i++){
        console.log(names[i]);
    }
    for(let n of names){
        console.log(n)
    }
</script>
</body>
</html>